package top.zhangjianyong.tools.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.zhangjianyong.tools.service.api.HolidayService;
import top.zhangjianyong.tools.user.VerifyUser;
import top.zhangjianyong.tools.utils.ApiResponse;

/**
 * 休息日
 *
 * @author zhangjianyong
 * @since 2024/6/27 下午2:08
 */
@VerifyUser(login = false)
@RestController
@RequestMapping("/holiday")
public class HolidayController {

    @Autowired
    private HolidayService holidayService;

    @PostMapping("/check/{num}")
    public ApiResponse check(@PathVariable("num") Integer num) {
        return holidayService.check(num);
    }

}
